home *** CD-ROM | disk | FTP | other *** search
- u 1cc l d
- a 1cf
- ; Bug Fix for MSC 3.0 eof() Memory Model(s): S,M
- ;
- ; The following fix corrects a bug in the function eof() from the
- ; Microsoft C 3.0 Compiler Library.
- ; The original code calls tell() to determine where the current file
- ; position is, and compares it to the result of filelength(). Un-
- ; fortunately, in the Small and Medium Memory Model libraries, the
- ; long int result from tell() is improperly treated as a signed
- ; int which is then CONVERTED to a long int. Result: eof() does
- ; not recognize end of file for files between (for example) 32768
- ; and 65535 bytes long.
- ; To apply this fix, extract eof.obj from slibc.lib (or mlibc) with:
- ; LIB slibc *eof;
- ; Then patch the object module and create a new library
- ; DEBUG eof.obj <msc3eof.pat
- ; Next, create a new object library to contain the fixed module
- ; LIB sfixlibc +eof;
- ; Finally, whereever LINK with slibc, use sfixlibc+slibc instead.
- ; For the Medium Model library mlibc, change the addresses above to:
- ; 1CC->1D3, 1CF->1D6.
- ;
- ; Bug Reported to Microsoft 03/14/86.
- ;
- ; Frank McKenney, McKenney Associates
- ; Richmond, Virginia (804) 320-4887
- nop
-
- u 1cc l d
- wq